import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import less from 'less'
import api from './api/index'
//方法一引入echarts
// import echarts from 'echarts'
//将echarts挂载到原型
// Vue.prototype.$echarts = echarts
//方法二：单独组件引入---导入和使用
//方法三：封装echarts插件
import echarts from './plugins/echarts'
//中国地图china.js
import 'echarts/map/js/china';
//地图的js文件
import './utils/map.js';
//tabs切换组件
import './components/tabs/index'
//tabs切换组件,已经迁移到tabs文件内的index.js文件中
// import Tabs from './components/tabs/Tabs.vue'
// import Tab from './components/tabs/Tab.vue'
// Vue.component(Tabs.name, Tabs)
// Vue.component(Tab.name, Tab)

//Swiper组件
import VueAwesomeSwiper from 'vue-awesome-swiper'
//import style (<= Swiper 5.x)
import 'swiper/css/swiper.css'
Vue.use(VueAwesomeSwiper, /* { default options with global component } */ )

Vue.use(echarts)

//引入Vant
import './plugins/vant'


// 将api挂载到原型
Vue.prototype.$api = api
Vue.config.productionTip = false


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')


Vue.use(less)